package top.leoseven.adminproject.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import top.leoseven.adminproject.R;

/**
 * Created by Administrator on 2018/2/23.
 */

public class HomeWorkDbHelper extends SQLiteOpenHelper {
    private Context context;
    public HomeWorkDbHelper(Context context) {
        super(context, "stuhomework", null, 1);
        this.context=context;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(context.getString(R.string.create_homeworkbase));
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
